
// string/number/boolean/null/underfined/symbol
let my_english_name: string = "mortal"
let my_age: number = 18
let i_like_red: boolean = false
let i_hate: null = null
let my_tomorrow: undefined = undefined
let s: symbol = Symbol()

// object
let my_hobby: object = {
    sport: "basketball",
    city: "北京"
}

// 数组
let arr1: string[] = ["mortal", "sean"];
let arr2: Array<string> = ["nanfeng", "mortal"];

let arr3: number[] = [1, 2, 3, 4];
let arr4: Array<number> = [20, 10, 8, 24];

let bool: boolean[] = [true, false];

// 联合类型 既有string又有number
let arr5: (string | number)[] = ["sean", "mingyue", 10];
// string类型或者数字型数组
let arr6: string | number[] = "sean";



console.log(arr1, arr2, arr3, arr4, arr5)
